package com.sc.es.service;

import com.sc.es.common.HouseResult;
import com.sc.es.common.ServiceResult;
import com.sc.es.dto.SubwayDTO;
import com.sc.es.dto.SubwayStationDTO;
import com.sc.es.dto.SupportAddressDto;
import com.sc.es.entity.House;
import com.sc.es.entity.SupportAddress;
import com.sc.es.search.BaiduMapLocation;

import java.util.Map;


/**
 * @author sc
 * Created on  2018/2/7
 */
public interface IAddressService {
   ServiceResult findAllCitiesByLevel();
   ServiceResult findAllRegionsByCity(String city);
   ServiceResult findSubWay(String cityName);
   ServiceResult findSubWayStation(Integer subwayId);
   Map<SupportAddress.Level, SupportAddressDto> findCityAndRegion(String cityEnName, String regionEnName);

   HouseResult<SubwayDTO> findSubWayById(Integer subwayLineId);

   HouseResult<SubwayStationDTO> findSubWayStationById(Integer subwayStationId);

   HouseResult findCity(String cityEnName);

   /**
    * 根据城市和地址获取百度地图经纬度
    *
    */
   HouseResult<BaiduMapLocation> getBaiduMapLocation(String city, String address);
}
